﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="content_new.aspx.cs" Inherits="Com.CMS263.Web.manage.content_new" %>
<%@ Import Namespace=" Com.CMS263.PO" %>
<%@ Import Namespace=" Com.CMS263.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">

<link type="text/css" rel="stylesheet" href="images/css4cnltreemenu.css" />

<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-size:12px;
	line-height:21px;
}
.CNLTreeMenu img.s {cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {padding:0;}
.CNLTreeMenu li {list-style:none;padding:0;}
.Closed ul {display:none;}
.Child img.s {background:none;cursor:default;}
#CNLTreeMenu1 ul {margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {background:url(/manage/images/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {background:url(/manage/images/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {background:url(/manage/images/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {width:17px;height:15px;}
#CNLTreeMenu2 .Opened img.s {background:url(skin2/opened.gif) no-repeat 4px 6px;}
#CNLTreeMenu2 .Closed img.s {background:url(skin2/closed.gif) no-repeat 3px 6px;}
#CNLTreeMenu2 .Child img.s {background:url(skin2/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {width:34px;height:18px;}
#CNLTreeMenu3 .Opened img.s {background:url(skin3/opened.gif) no-repeat 0 1px;}
#CNLTreeMenu3 .Closed img.s {background:url(skin3/closed.gif) no-repeat 0 1px;}
#CNLTreeMenu3 .Child img.s {background:url(skin3/child.gif) no-repeat 13px 2px;}


</style>


    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="/manage/js/jquery-1.4.2.min.js"></script>
    <script language="javascript" src="js/js4cnltreemenu.js"></script>
 	<script type="text/javascript">
 	    window.onload = function() {
 	       
 	        checkMenu();

 	        var o = document.getElementById("menu");
 	        var links = o.getElementsByTagName("a");
 	        for (var i = 0; i < links.length; i++) {
 	            links[i].i = i;
 	            links[i].onclick = function() {
 	                if (links[this.i].parentNode.className == "on" || links[this.i].parentNode.className == "") {
 	                    links[this.i].parentNode.className = "off";
 	                } else {
 	                    links[this.i].parentNode.className = "on";
 	                }
 	            }
 	        }
 	    }

	</script>
	<script language="javascript" type="text/javascript">
	    function checkMenu() {

	        var me = "<%=power %>";
	        // alert(me);
	        var menuIds = me.split(",");
	        var asss = $('#menu a');

	        if (me.length > 0) {
	            $.each(asss, function() {
	                var hre = $(this).attr("href");
	                if (hre == undefined)
	                { }
	                else {
	                    for (var i = 0; i < menuIds.length - 1; i++) {
	                        if (menuIds.length > 0) {
	                            var mids = hre.split('=');

	                            if (mids[mids.length - 1] == menuIds[i]) {
	                                // alert(hre.indexOf(menuIds[i]));
	                                // alert((this));
	                                //$(this).parent().parent().remove();
	                                //if (index($(this).parent())) {
	                                remov(this)
	                                // }
	                                // $(this).parent().parent().parent()remove();
	                            }
	                        }

	                    }
	                }

	            });
	        }
	        //alert(asss);
	        
	        //alert($("#ManageSingleArt/AddBaseArt.aspx?pid=4&menuId=6").href);
	       // $("#ManageSingleArt/AddBaseArt.aspx?pid=4&menuId=6").parentNode.attr("class", "style='none'");
	    }
	    function remov(obj) {
	        // alert(index($(obj)));
	        var bro = $(obj).siblings()
	        //alert(bro.length);

	        if (bro.length < 1) {
	         //   alert($(bro));
	        var p = $(obj).parent();
	       // $(obj).remove(p);
	       // alert(p);
            remov(p);
	        }
	        else {
	            $(obj).remove();
	        }
	    }
         
	</script>
</head>
<body  >
    <form id="form1" runat="server">
    
        <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                <tr>
                    <td height="100%" valign="top" background="images/9.jpg" id="lefttd" style="display: block;">
                    <div class="CNLTreeMenu" id="CNLTreeMenu1">
<h4>网站管理</h4>
<p><a id="AllOpen_1" href="#" onclick="MyCNLTreeMenu1.SetNodes(0);Hd(this);Sw('AllClose_1');">全部展开</a><a id="AllClose_1" href="#" onclick="MyCNLTreeMenu1.SetNodes(1);Hd(this);Sw('AllOpen_1');" style="display:none;">全部折叠</a></p>
<ul>
  <li class="Opened"><a href="#">IECN.Net</a>
  <ul>

    <li><a href="#1">技术区</a>
	  <ul>
       <li><a href="#">网页技术</a>
	    <ul>
	     <li class="Child"><a href="#">JavaScript</a></li><!--Child Node-->
	     <li class="Child"><a href="#">HTML/XHTML/CSS</a></li>
	     <li class="Child"><a href="#">Ajax</a></li>

	     <li class="Child"><a href="#">网页制作工具</a></li>
	     <li class="Child"><a href="#">设计/图形</a></li>
	     <li class="Child"><a href="#">Flash/多媒体</a></li>
	     <li class="Child"><a href="#">VML/Web3D</a></li>
	    </ul></li><!--Sub Node 3-->
       <li><a href="#">Web编程</a>

	    <ul>
	     <li class="Child"><a href="#">Java</a></li><!--Child Node-->
	     <li class="Child"><a href="#">.Net</a></li>
	     <li class="Child"><a href="#">ASP/VBScript</a></li>
	     <li class="Child"><a href="#">PHP</a></li>
	     <li class="Child"><a href="#">Perl/Python</a></li>

	     <li class="Child"><a href="#">Web综合/开源</a></li>
	    </ul></li><!--Sub Node 3-->
       <li><a href="#">数据库</a>
	    <ul>
	     <li class="Child"><a href="#">Access/SQLServer</a></li><!--Child Node-->
	     <li class="Child"><a href="#">MySQL/PostgreSQL</a></li>
	     <li class="Child"><a href="#">Oracle/DB2/Sybase</a></li>

	    </ul></li><!--Sub Node 3-->
       <li><a href="#">服务器</a>
	    <ul>
	     <li class="Child"><a href="#">Windows/IIS</a></li><!--Child Node-->
	     <li class="Child"><a href="#">Unix/Linux/Apache</a></li>
	     <li class="Child"><a href="#">应用服务器</a></li>
	    </ul></li><!--Sub Node 3-->

     </ul></li><!--Sub Node 2-->
    <li><a href="#1">二级目录</a>
	  <ul>
       <li><a href="#">三级目录</a>
	    <ul>
         <li><a href="#">四级目录</a>
		  <ul>

           <li><a href="#">五级目录</a>
		    <ul>
             <li><a href="#">......</a>
			  <ul>
               <li><a href="#">第n级目录</a>
			     <ul>
	               <li class="Child"><a href="#">叶结点1</a></li><!--Child Node-->

	               <li class="Child"><a href="#">叶结点2</a></li>
	               <li class="Child"><a href="#">叶结点3</a></li>
	               </ul></li><!--Sub Node n -->
              </ul></li><!--Sub Node 6 -->
            </ul></li><!--Sub Node 5 -->
          </ul></li><!--Sub Node 4-->
        </ul></li><!--Sub Node 3-->
     </ul></li><!--Sub Node 2-->

    <li><a href="#1">二级目录</a>
	  <ul>
       <li><a href="#">三级目录</a>
	    <ul>
         <li><a href="#">四级目录</a>
		  <ul>
           <li><a href="#">五级目录</a>

		    <ul>
             <li><a href="#">......</a>
			  <ul>
               <li><a href="#">第n级目录</a>
			     <ul>
	               <li class="Child"><a href="#">叶结点1</a></li><!--Child Node-->
	               <li class="Child"><a href="#">叶结点2</a></li>

	               <li class="Child"><a href="#">叶结点3</a></li>
	               </ul></li><!--Sub Node n -->
              </ul></li><!--Sub Node 6 -->
            </ul></li><!--Sub Node 5 -->
          </ul></li><!--Sub Node 4-->
        </ul></li><!--Sub Node 3-->
     </ul></li><!--Sub Node 2-->
  </ul></li><!--Sub Node 1 -->
<li class="Opened"><a href="#">管理员</a>
  <ul>

    <li class="Child"><a href="adminUser/adduser.aspx" target="help"> 管理</a></li>
     <li class="Child"><a href="adminUser/AddUserRole.aspx" target="help"> 角色</a></li>
     <li  class="Child" style=" display:block"><a href="manageArtType/AddArtType.aspx" target="help">管理分类</a></li>
     <li class="Child"><a href="/manage/ManageAttrType/AddAttributeType.aspx" target="help">添加扩展属性分类</a></li>
</ul>
</li>
</ul>
</div><!-- CNLTreeMenu -->
<!--CNLTreeMenu1 End!-->

                  
                    <span id="menu">
                    <br />
                    <asp:Literal ID="myMenu" Visible="false" EnableViewState="false" runat="server"></asp:Literal>
                     
				
                     
                    </span>
                          
                    </td>
                    <td  bgcolor="#D4d0c8" background="images/main_1.gif" style="width: 16px; height:550px;
                        margin-left: 6px;">
                        <table width="10" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td >
                                    <img src="images/tree/main_dot_1.gif" name="menuSwitch" width="16" height="78" border="0"
                                        id="menuSwitch" onclick="javascript:changeWin();"></td>
                            </tr>
                        </table>
                    </td>
                   
                    <td valign="top" >
                        <iframe id="help" name="help" height="500px" width="100%" frameborder="0" onload="this.height=window.screen.height +'px'" scrolling="auto" src="right.aspx" >
                           </iframe>
                        <div style="width: 800px;">
                        </div>
                    </td>
                </tr>
            </table>
                  </div>
                  <script type="text/javascript">
<!--
                      var MyCNLTreeMenu1 = new CNLTreeMenu("CNLTreeMenu1", "li");
                      MyCNLTreeMenu1.InitCss("Opened", "Closed", "Child", "images/s.gif");

                      
-->
</script>
    </form>
</body>
</html>
